package ClientLoginOrder

import (
	"IMServices/NetIO/Packet"
	"net"
)

var MethodMap map[int32]func(pack Packet.MessageRequest, conn net.Conn)

func Init() {
	MethodMap = make(map[int32]func(pack Packet.MessageRequest, conn net.Conn))
	Register()
}

// Register 注册方法
func Register() {
	MethodMap[Packet.MethodLogin] = LoginHandle
}
